<?php namespace Phpcmf\Controllers;

class Home extends \Phpcmf\Common {


    public function index() {

        $spider = \Phpcmf\Service::M('spider', 'spider')->get_spider($_SERVER['HTTP_USER_AGENT']);
        if (!$spider) {
            exit('null');
        }


        \Phpcmf\Service::M('spider', 'spider')->save_log(
            $_SERVER['HTTP_REFERER'],
            $spider,
            $this->_is_mobile(),
            \Phpcmf\Service::L('input')->get('title', true)
        );

        exit('');
    }


}